<div class="administration2">
    <form id="formConnexion" name="formConnexion" action="<?php echo base_url()."index.php/administration/enregistrerInscrit"; ?>" method="POST">
    <span class="titleSection">Administration des inscrits</span>
    <div class="champFormulaireAdministrationInscrit">
        <input type="hidden" value="<?php echo $userid; ?>" id="idUser" name="idUser">
        <label>Nom</label> <span><input type="text" id="nom" name="nom" value="<?php echo $utilisateur->nom; ?>"/></span><br/>
        <label>Pr&eacute;nom</label> <span><input type="text" id="prenom" name="prenom" value="<?php echo $utilisateur->prenom; ?>"/></span><br/>
        <label>Ville</label> <span><input type="text" id="ville" name="ville" value="<?php echo $utilisateur->ville; ?>" /></span><br/>
        <label>E-mail</label> <span><input type="text" id="email" name="email" value="<?php echo $utilisateur->email; ?>" /></span><br/>
		
		<?php
		if ($utilisateur->typeuser != 3) {
		?>
		<label>Module(s) :</label>
		<div >
			<table id="arrayModules" class="display" cellspacing="0">
			<thead>
				<tr>
					<th>Nom module</th>
					<th></th>                    
				</tr>
			</thead>
			<tbody>
			<?php
				foreach ($listeModuleAll as $row)
				{           
					//$isCoche = in_array ( $row->idmodule , $listeModuleUser  );
					echo "<tr><td>".$row->nom."</td><td><input type='checkbox' value=".$row->idmodule;

					if (in_array($row->idmodule, $listeModuleUser))
					{
						echo " checked ";
					} 
					else if($row->idenseignant == $userid)
					{
						echo " checked ";
					}
					echo " id='user_module_".$row->idmodule."' name='user_module[]' /></td></tr>";
				}                
			?>            
			</tbody>
			</table>
		</div> 
		
		
		
		Enseignant <input type="checkbox" name="enseignant" id="enseignant" value="2" class="checkbox" <?php if ($utilisateur->typeuser==2) echo "checked"; ?>><br/>
        <?php
		}
		
		if($utilisateur->enAttenteValidation==1)
		{
			echo "<input type='button' id='validerInscritAttente' value='Confirmer inscription'/><br/>";
		}
        ?>
                
                <input type="button" id="validerAdminInscrit2" value="Valider"/>
				
				<?php
				if ($utilisateur->typeuser != 3) {
				?>
				&nbsp;
				<input type="button" id="supprimerAdminInscrit2" value="Supprimer" onClick='supprimerInscrit_onClick(".$row->iduser.")'/>
				<?php
				}
				?>
				<br><br>
				<a href="<?php echo base_url()."index.php/administration/administrationinscrit1"; ?>">Retour</a>
				
	 </div>
      <div id="idErrorInscription" class="errorInscription"><span></span></div>
	 </form>
</div>